package com.example.onlineanswer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.onlineanswer.model.entity.QuestionType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 题目类型Mapper接口
 */
@Mapper
public interface QuestionTypeMapper extends BaseMapper<QuestionType> {

    /**
     * 获取所有题目类型
     *
     * @return 题目类型列表
     */
    @Select("SELECT * FROM question_type ORDER BY id")
    List<QuestionType> getAllQuestionTypes();
} 